package com.example.filemanager;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class DirDetail extends Activity {
	private TextView v_dirpath;
	private TextView v_dircount;
	private TextView v_filecount;
	private TextView v_size;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dir_detail);
		
		String path = getIntent().getStringExtra("path");
		
		Folder d = new Folder(path);

		v_dirpath =  (TextView)findViewById(R.id.dirpath);
		v_dircount=  (TextView)findViewById(R.id.dircount);
		v_filecount= (TextView)findViewById(R.id.filecount);
		v_size =	 (TextView)findViewById(R.id.size);
		
		v_dirpath.setText(path);
		v_size.setText(Folder.FormetFileSize(d.getSize()));
		v_dircount.setText(String.valueOf(d.getFilecount()));
		v_filecount.setText(String.valueOf(d.getFilecount()));
		
	}
	
	
}
